<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="/tld/extremecomponents" prefix="ec" %>
<%@ include file="../common/common.jsp" %>
<%@ include file="user_pass2.jsp" %>
<%
IFriendsService friendsService = (IFriendsService)BeanManager.getBean("friendsService");
friendsService.AutoBindingTable(LOGIN_ID,request);
%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><%=SYSTITLE%> - 工具箱</title>
<meta name="Keywords" content="<%=SYSMETAKEY%>" />
<meta name="Description" content="<%=SYSMETADESC%>" />
<%@ include file="../common/meta.inc" %>
<link rel="stylesheet" type="text/css" href="css/defaultStyle.css" >
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/extremetable/new/extremecomponents.css"/>
<script language="javascript" src="${pageContext.request.contextPath}/scripts/common-validator.js"></script>
</head>
<body>
<%@ include file="../common/waiting.inc" %>
<script language="javascript" src="${pageContext.request.contextPath}/scripts/prototype.js"></script>
<script language="javascript" src="${pageContext.request.contextPath}/scripts/buffalo/buffalo.js"></script>
<SCRIPT language="javascript">

setStatus('<%=SYSTITLE%> - 工具箱');

var END_POINT="${pageContext.request.contextPath}/buffalo";
var buffalo = new Buffalo(END_POINT);

function deleteInfo(objs)
{
	if(sl_confirmRemove(objs))
	{
		var ids = getCheckBoxValues(objs);
		buffalo.remoteCall("friendsServiceAjaxService.delete",[ids], function(reply) {
        	ajaxSubmit(reply.getResult(),"删除成功！","reload");		
    	});
	
	}	
}

</SCRIPT>
<script language="javascript" type="text/javascript" src="template/scripts/topBar.js"></script>
<%@ include file="includes/userMenu.inc" %>
<DIV class="line"></DIV>
<DIV class="list_table_0">
<%=HtmlConst.navMenu("user_take.jsp","我的工具箱")%>&gt;&gt;我的好友
&nbsp;&nbsp;[<a href="user_friends_add.jsp">添加好友</a>]&nbsp;&nbsp;[<b><a href="user_friends.jsp">好友列表</a></b>]&nbsp;&nbsp;[<a href="user_friends_wait.jsp?friendType=1">准好友列表</a>]&nbsp;&nbsp;[<a href="user_friends_black.jsp?friendType=2">黑名单</a>]
</DIV>
<DIV class="line"></DIV>
<form name="theform" method="post" action="user_friends.jsp">
	<ec:table form="theform"	    	    
		items="resultList"
		var="rs"	
		retrieveRowsCallback="limit"
        sortRowsCallback="limit"			
		action="${pageContext.request.contextPath}/club/user_friends.jsp"	
		>	
		<ec:row>
				<ec:linkColumn property="FRIEND_LOGIN_ID" title="朋友ID" width="18%" type="_blank" url="user_info.jsp?loginId=${rs.FRIEND_LOGIN_ID }"/>								
			    <ec:switchColumn property="SEX" title="性别" width="5%" defaultValues="M,F,O">
					男||女||保密										
				</ec:switchColumn>	
				<ec:column property="2" title="所在地区" width="20%">
					${rs.AREA },${rs.CITY }
				</ec:column>				
				<ec:column property="REG_TIME" title="注册时间" cell="date" width="18%"/>
				<ec:column property="LAST_LOGIN_TIME" title="最后登陆" cell="date" width="18%"/>
				<ec:switchColumn property="IS_ONLINE" title="状态" width="8%" defaultValues="false,true">
					离线||在线								
				</ec:switchColumn>				
				<ec:column property="3" title="短消息" width="8%">
					<a  onclick="return openPop(this,600,400,200,300)"
					 href="user_new_message_pop.jsp?takeUser=${rs.FRIEND_LOGIN_ID}"><img
							src="images/pages/4.gif" border="0" />
					</a>
				</ec:column>
				<ec:column property="1" title="操作" width="5%"
					viewsAllowed="html">
					<input type="checkbox" name="friId" value="${rs.FRI_ID}">
				</ec:column>
		</ec:row>
	</ec:table>
</form>	
<table width="100%" border="0" align="center" cellpadding="2" cellspacing="1" class="tab">	
<tr class="tab3">
<td height="25" align="right">
	<span style="float:left">
	<strong>工具箱图例：</strong>&nbsp;&nbsp;<img src="images/userToolBox/lookyes.gif" />已读
	&nbsp;&nbsp;
	<img src="images/userToolBox/lookno.gif" />未读
	</span>
	<input name="btnDelete" type="button" value="删除" class="btn" onclick="deleteInfo(document.theform.friId);"/>全(反)选<input name="selectAll" type="checkbox" id="selectAll" onclick="selectAllBox(document.theform.friId);"/>
</td>
</tr>
</table>	
<DIV class="line"></DIV>	
<%=COPYRIGHTFOOT%>
<%@ include file="../common/foot.inc"%>
</body>
</html>